<template>
<button @click="$store.commit('user/setToken',Math.random()*100)">测试</button>
  <router-view/>
</template>
<script>
export default {
  created () {
    console.log(this.$store.state.user.profile)
  }
}
</script>
<style lang="less">

</style>
